<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">   
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
</head>
<body>
	<!--部署后的名字必须是java56_jsp1  -->
	<!-- 不受base影响  -->
	<img alt="dog" src="/java56_jsp1/img/dog.jpg">
	<!-- 路径从base的地址开始 -->
	<img src="img/dog2.jpg"/>
	<a href="shuaige.jsp" target="_blank">买帅哥</a>
</body>
</html>